import Vue from "vue"
import VueRouter from "vue-router"
Vue.use(VueRouter)
export default new VueRouter({
    mode:'history',
    routes:[
        {
            path:'/home',
            name:'home',
            component:()=>import("../views/Home.vue")
        },
        {
            path:'/main',
            name:'main',
            component:()=>import("../views/Main.vue")
        },
        {
            path:'/',
            redirect:{
                path:'/home'
            }
        }
    ]

})